package com.xbs.controller.user;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xbs.controller.base.BaseServlet;
import com.xbs.entity.UserEntity;
import com.xbs.service.user.RegService;

@WebServlet("/user")
public class UserServlet extends BaseServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		RegService us = new RegService();
		List<UserEntity> ulst = us.getUserlst();
		for(UserEntity u:ulst){
			System.out.println(u.getUser_name());
		}
	}
}
